<?php if (basename(__FILE__) == basename($_SERVER['PHP_SELF'])) header("Location: index.php"); ?>
            </div><!-- #content -->
            <div id="footer" class="clearfix">
                <div id="copyright">
                    <p>
                        <a href="<?php echo LINK; ?>" target="_blank" title="<?php echo COMPANY; ?>">&copy; <?php echo date("Y"); ?> <?php echo COMPANY; ?></a>
                    </p>
                </div><!-- #copyright -->
                <div id="apps">
                    <a href="http://apps.ge/" id="apps-btn" target="_blank" title="Powered by Apps.Ge">Powered by Apps.Ge</a>
                </div><!-- #apps -->
            </div><!-- #footer -->
        </div><!-- #wrapper -->
        <?php if( IE6MUSTDIE ) : ?>
        <!--[if IE 6]>
        <script type="text/javascript" src="media/js/ie6mustdie/ie6mustdie.js"></script>
        <![endif]-->
        <?php endif; ?> 
        <?php if( FB_JS_SKD ) : ?>
        <div id="fb-root"></div>
		<script src="http://connect.facebook.net/en_US/all.js"></script>
		<script>
		
			FB.init({
			    appId  : '<?php echo APP_ID; ?>',
			    status : true, // check login status
			    cookie : true, // enable cookies to allow the server to access the session
			    xfbml  : true  // parse XFBML
			});
				
		    window.fbAsyncInit = function() {
		       FB.Canvas.setSize({ width: 520, height: <?php echo HEIGHT; ?> });
		    }

		    // Do things that will sometimes call sizeChangeCallback()
		    function sizeChangeCallback() {
				FB.Canvas.setSize({ width: 520, height: <?php echo HEIGHT; ?> });
		    }
	
		    window.setTimeout(function() { if (window.fbAsyncInit) { fbAsyncInit(); }}, 0);
		
		</script>
		<?php endif; ?>
        <?php if( CUSTOM_JS ) : ?>
        <script type="text/javascript" src="./media/js/jquery.min.js?v=<?php echo JQUERY_VER; ?>"></script>
        <?php if( SWFOBJECT ) : ?><script type="text/javascript" src="./media/js/swfobject.js?v=<?php echo SWFOBJECT_VER; ?>"></script><?php endif; ?>
        <<script type="text/javascript">
            var container = $("div#tweets"), 
                username = "<?php echo TWITTER_USERNAME; ?>",
                count = <?php echo TWITTER_LIMIT; ?>;
        </script>
        <script type="text/javascript" src="./media/js/script.js?v=<?php echo CUSTOM_JS_VER; ?>"></script>
        <?php endif;?>
    </body>
</html>
